package risk.control.project.mapper.record;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import risk.control.project.entity.repository.TransactionRecordBean;

import java.util.List;
import java.util.Map;


@Repository
@Mapper
public interface RecordMapper {

    //插入一条记录
    void addOneRecord(TransactionRecordBean bean);

    //查询记录
    List<TransactionRecordBean> queryRecord(Map<String, Integer> params);

    //查询总记录条数
    String queryTotal();

    //按预约时间-开始时间+结束时间
    List<TransactionRecordBean> queryRecordFromWithdrawalTime(Map<String, Object> params);

    //查询总记录条数-查询总条数-开始时间+结束时间
    String queryTotalFromWithdrawalTime();

    //根据预约时间-全量查询
    List<TransactionRecordBean> fullQueryRecord(Map<String, String> params);

}
